package org.hxyjs.dao;

import org.hxyjs.entity.Supplier;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface SupplierDao {
    public List<Supplier> getAllSuppliers() throws Exception;

    public List<Supplier> getSupplierByPage(PageInfo pageInfo);

    public Supplier getSupplierBySuno(String suno) throws Exception;

    //增删改的返回值都是整数
    Integer deleteSupplierBySuno(String sno) throws Exception;

    Integer updateSupplierBySuno(Supplier suppliert) throws Exception;

    Integer addSupplier(Supplier suppliert) throws Exception;

    //    Supplier getSupplierBySuno(String suno) throws Exception;
    Supplier selectSupplierWithorderAndUser(String suno) throws Exception;
}